<?php
require_once 'MyPdo.class.php';
class MyPdoCounty{
	public static function init($stat = false){
		global $config;
		if(!@$_SESSION['CountyInfo'] || !@$_SESSION['CountyInfo'][2]){
			exit('errm');
		}
		$db_host = IpDecrypt($_SESSION['CountyInfo'][1]);
		$db_name = $_SESSION['CountyInfo'][2];
		return MyPdo::init($db_host,$db_name,$config['county_db_user'],$config['share_db_pwd'],$stat);
	}

}
